[slug].vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <script lang='ts' setup>
  2. import { useCommonStore } from '@/stores/modules/common'
  3. const commonStore = useCommonStore()
  4. const list = [
  5. {
  6. id: 1,
  7. title: 'Stationary & Office Supplies',
  8. description: 'Discover bestsellers and fresh arrivals tailored to your niche.',
  9. img: 'https://picsum.photos/560/310',
  10. pdfUrl: 'https://static.ejetselection.com/temp/baozhen_1748937135247.pdf',
  11. // pdfUrl: 'https://static.ejetselection.com/temp/导入模板2222_1736660213488.xlsx',
  12. type: 'download',
  13. },
  14. {
  15. id: 2,
  16. title: 'Stationary & Office Supplies',
  17. description: 'Discover bestsellers and fresh arrivals tailored to your niche.',
  18. img: 'https://picsum.photos/560/310',
  19. pdfUrl: 'https://static.ejetselection.com/temp/baozhen_1748937135247.pdf',
  20. type: 'request',
  21. },
  22. {
  23. id: 3,
  24. title: 'Stationary & Office Supplies',
  25. description: 'Discover bestsellers and fresh arrivals tailored to your niche.',
  26. img: 'https://picsum.photos/560/310',
  27. pdfUrl: 'https://static.ejetselection.com/temp/baozhen_1748937135247.pdf',
  28. type: 'request',
  29. },
  30. {
  31. id: 4,
  32. title: 'Stationary & Office Supplies',
  33. description: 'Discover bestsellers and fresh arrivals tailored to your niche.',
  34. img: 'https://picsum.photos/560/310',
  35. pdfUrl: 'https://static.ejetselection.com/temp/baozhen_1748937135247.pdf',
  36. type: 'request',
  37. },
  38. ]
  39. const { openLoginAndDownloadModal } = useLoginAndDownLoadModal()
  40. async function clickLoginAndDownload(item: any) {
  41. try {
  42. commonStore.setDownloadCatalog(item)
  43. const { status } = await openLoginAndDownloadModal()
  44. if (status)
  45. location.reload()
  46. }
  47. catch (error) {
  48. console.log(error)
  49. }
  50. }
  51. </script>
  52. <template>
  53. <div>
  54. <div class=" bg-#0F0820">
  55. <div class="header w-1200-auto text-center flex items-center justify-center h-600px bg-no-repeat bg-center" style="background-image: url('https://picsum.photos/420/420')">
  56. <h1 class="text-58px fw-800 text-#fff ls-2 custom-title-font">
  57. STATIONARY & OFFICE SUPPLIES
  58. </h1>
  59. </div>
  60. </div>
  61. <div class="py-120px w-1200-auto text-center">
  62. <h2 class="text-36px fw-800 text-#333 !mb-20px custom-title-font">
  63. Our Latest Product <span class="custom-title-bg04">Catalogs</span>
  64. </h2>
  65. <div class="text-#999 text-22px mb-40px">
  66. Discover bestsellers and fresh arrivals tailored to your niche.
  67. </div>
  68. <div class="grid grid-cols-2 gap-64px text-left">
  69. <div v-for="item in list" :key="item.id">
  70. <business-categories-comp-item :item="item" @select="clickLoginAndDownload" />
  71. </div>
  72. </div>
  73. </div>
  74. <common-block-catalogs />
  75. <common-block-blog class="!pb-0" />
  76. <AppFooter />
  77. </div>
  78. </template>
  79. <style lang='less' scoped>
  80. .header{
  81. background-position: 50% 75%;
  82. }
  83. </style>